package org.Image.management.SpringDataService.Service.Sys_User.Service.impl;


import org.Image.management.SpringDataService.Service.Sys_User.Pojo.Vo.UpdateVo;
import org.Image.management.SpringDataService.Service.Sys_User.Pojo.dto.LoginRequest;
import org.Image.management.SpringDataService.Service.Sys_User.Pojo.dto.RegisterRequest;
import org.Image.management.SpringDataService.Service.Sys_User.Pojo.mapper.User;

public interface UserServiceInterface {
    // 注册用户
    User registerUser(RegisterRequest user);

    // 登录用户
    User loginUser(LoginRequest user);

    // 修改密码
    UpdateVo modifyPassword(Long ID, String oldPassword, String newPassword);

    // 修改用户名
    UpdateVo modifyUserName(Long ID, String newUserName);

    // 注销用户
    boolean deleteUser(Long id,  boolean ConfirmDelete);
    // 注销用户
    boolean deleteUser(LoginRequest user);
}
